(window["webpackJsonp_my-device"]=window["webpackJsonp_my-device"]||[]).push([["chunk-2399d158"],{1448:function(e,t,i){},"2e9b":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"device"},[i("ii-model-table",{ref:"modelTableRef",staticClass:"deviceTable",attrs:{"table-config":e.tableConfig},on:{operates:e.operates}}),i("ii-dialog-form",{ref:"dialogForm"})],1)},n=[],p=(i("caad"),i("c7eb")),l=i("1da1"),o={data:function(){var e=this;return{search:{},tableConfig:{height:"100%",rowKey:"techRowIndex",getData:function(){var t=Object(l["a"])(Object(p["a"])().mark((function t(){var i,a,n;return Object(p["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.Tech.api.common({Paras:[]},e.$apiSevice.base+"/apigateway/datacenterservice/getdevicelist");case 2:if(i=t.sent,a=i.IsSuccess,n=i.Data,!a){t.next=9;break}return t.abrupt("return",{items:n,totalCount:n.length});case 9:return t.abrupt("return",{items:[],totalCount:0});case 10:case"end":return t.stop()}}),t)})));function i(){return t.apply(this,arguments)}return i}(),paging:{prev:!1,next:!1,totalCount:0,disableScrollY:!0,input:"1-2000",isJsPaging:!0},columns:[{label:"设备名称",prop:"FullName",minWidth:"100",filter:{type:"input"}},{label:"ebox名称",prop:"EdgeName",minWidth:"100",filter:{type:"input"}},{label:"ebox地址",prop:"EdgeId",minWidth:"80",filter:{type:"input"}},{label:"设备类型",prop:"DeviceType",minWidth:"100",filter:{type:"input"}},{label:"是否启用",prop:"Enable",minWidth:"100",dataMap:{false:"否",true:"是"},filter:{type:"input"},comp:"icon",iconConf:{type:"class",map:{false:"circle-1-1",true:"circle-1-2"}}},{label:"设备编码",prop:"AssetsCode",minWidth:"100",filter:{type:"input"}},{label:"设备状态",prop:"DeviceStatus",minWidth:"100",filter:{type:"input"}},{label:"设备参数",prop:"DeviceDesc",minWidth:"100",filter:{type:"input"}},{label:"通道状态",prop:"ChannelStatus",minWidth:"100",filter:{type:"input"}},{label:"通道参数",prop:"Channel",minWidth:"100",filter:{type:"input"}},{label:"操作",type:"operation",width:"100",buttons:[{text:"详情",action:"preview"}]}],toolbar:{show:!0}},methods:{}}}},r={data:function(){return{formConfig:{labelWidth:"100px",title:{look:"设备状态详情"},layout:[[{comp:"input",label:"设备名称：",prop:"FullName",width:12,disabled:!0},{comp:"input",label:"设备编码：",prop:"AssetsCode",width:12,disabled:!0}],[{comp:"input",label:"ebox名称：",prop:"EdgeName",width:12,disabled:!0},{comp:"input",label:"ebox地址：",prop:"EdgeId",width:12,disabled:!0}],[{comp:"checkbox",label:"是否启用：",prop:"Enable",width:12,disabled:!0},{comp:"input",label:"设备类型：",prop:"DeviceType",width:12,disabled:!0}],[{comp:"input",label:"设备状态：",prop:"DeviceStatus",width:12,disabled:!0},{comp:"input",label:"设备参数：",prop:"DeviceDesc",width:12,disabled:!0}],[{comp:"input",label:"通道状态：",prop:"ChannelStatus",width:12,disabled:!0},{comp:"input",label:"通道参数：",prop:"Channel",width:12,disabled:!0}]]}}},methods:{}},d={name:"device",mixins:[r,o],data:function(){return{}},created:function(){},methods:{operates:function(e){["preview","edit","add"].includes(e.type)&&this.deviceEdit(e)},deviceEdit:function(e){this.$refs.dialogForm.open({data:{formConfig:this.formConfig,form:e.data,edit:"preview"!==e.type}})}}},c=d,s=(i("aaff"),i("2877")),u=Object(s["a"])(c,a,n,!1,null,"0b05a4c6",null);t["default"]=u.exports},aaff:function(e,t,i){"use strict";i("1448")}}]);
//# sourceMappingURL=chunk-2399d158.05624e1e.js.map